<?php
/**
 * User.php
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */

/** base class */
require_once 'Madoqua/Db/Table/Abstract.php';

/**
 * Admin_User
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */
class BlogAdmin_User extends Madoqua_Db_Table_Abstract 
{
    /**
     * table name
     *
     * @var string
     */
    protected $_name = 'user';
    
    /**
     * fetch a user by his/her id
     *
     * @param int $id
     * @return Zend_Db_Table_Row
     */
    public function fetchById($id) 
    {
        return $this->fetchRow($this->select()->where('id = ?', $id));   
    }
    
}